local unitName  =  "Diabloian_monolith"

local unitDef  =  {
--Internal settings
    BuildPic = "Diabloian_monolith.png",
    Category = "TANK SMALL NOTAIR NOTSUB",
    ObjectName = "PK_Diabloian_monolith.s3o",
    name = "Diabloian Monolith Hovertank",
    Side = "TANKS",
    TEDClass = "TANK",
    UnitName = "Diabloian_monolith",
    script = "PK_Diabloian_monolith_script.lua",
    Category = [[LAND]],
    iconType = "default",
    
--Unit limitations and properties
    BuildTime = 10000,
    Description = "The Diabloian Monolith, Excellent at countering enemy land units.",
    MaxDamage = 3990,
    RadarDistance = 0,
    SightDistance = 500,
    SoundCategory = "TANK",
    Upright = false,
    
--Energy and metal related
    BuildCostEnergy = 8000,
    BuildCostMetal = 765,
    
--Pathfinding and related
    Acceleration = 0.15,
    BrakeRate = 0.1,
    FootprintX = 3,
    FootprintZ = 3,
    MaxSlope = 20,
    MaxVelocity = 1.3,
    MaxWaterDepth = 20,
    MovementClass = "Hover3x3",
cantBeTransported=true,
    canHover = true,
    TurnRate = 900,
    
--Abilities
    Builder = 0,
    CanAttack = 1,
    CanGuard = 1,
    CanMove = 1,
    CanPatrol = 1,
    CanStop = 1,
    LeaveTracks = 0,
    Reclaimable = 0,
    
--Hitbox
--    collisionVolumeOffsets    =  "0 0 0",
--    collisionVolumeScales     =  "20 20 20",
--    collisionVolumeTest       =  1,
--    collisionVolumeType       =  "box",
    
--Weapons and related
    BadTargetCategory = "AIR",
    ExplodeAs = "LARGE_UNIT_EXPLOSION",
    NoChaseCategory = "AIR",

weapons = {
        [1] = {
            def = "LASER",
	     onlyTargetCategory = [[LAND]],
        },
        [2] = {
            name  = "Striker_missiles",
	onlyTargetCategory = [[AIR VTOL]],
        },

    },
}

weaponDefs = {
    LASER = {
		name = "Massive Pyre cannon",
weapontype = "Cannon",
		accuracy = 10,
		areaofeffect = 75,
		avoidfeature = false,
		avoidfriendly = true,
		canattackground = true,
		collidefriendly = true,
		collisionsize = 8,
		commandfire = false,
		craterboost = 0,
		cratermult = 0,
		edgeeffectiveness = 0.1,
		explosionspeed = 256,
		impulseboost = 0,
		impulsefactor = 0,
		intensity = 1,
		noselfdamage = true,
		size = 8,
        soundstart = "cannon_fire7",
        soundhit = "xplomed3",
		range = 1200,
		reloadtime = 8,
		rgbcolor = "1.0 1.0 1.0",
		turret = true,
		texture1 = "redflame",
	     stages                  = 60,
		 separation              = 1,
		weaponvelocity = 1500,
		explosiongenerator = "custom:dodaibomb",
		damage =
		{
			default = 2065,
		},
	},

}


unitDef.weaponDefs = weaponDefs
return lowerkeys({ [unitName]  =  unitDef })

